package com.trade.dao.impl;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.hibernate.*;

public class SpringConfig{

		static ApplicationContext context = null ;
		public SpringConfig(){
			context = new ClassPathXmlApplicationContext(
					"applicationContext.xml");
		}

		public Object getBean(String beanName){
			return context.getBean(beanName);
		}
}